package tjut.opp.testI10;

public class BallTest {

	public static void main(String[] args) {
		double num=100;
		double high=100;
		for(int i=1;i<10;i++){
				high=high/2;
				num=num+high*2;
		}
		System.out.println("走了"+String.format("%.5f", num)+"米，高度："+String.format("%.3f", high)+"米");
          
	}

}
